<template>
  <swiper>
    <div class="swiper-slide" v-for="(item) in banners" :key="item.id">
        <a :href="item.link">
          <img :src="item.image" alt="">
        </a>
      </div>
  </swiper>
</template>
<script>
import {Swiper} from 'components/common/swiper';

export default {
  name: "Home",
  props: {
    banners: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  components: {
    Swiper,
  }
};
</script>
<style scoped>
</style>